<template>
  <div>
    <button @click="get">点击</button>
  </div>
</template>

<script lang="ts" setup>
import { reactive } from 'vue'
import { reqLogin } from '@/api/user'
const user = reactive({
  username: 'admin',
  password: '111111'
})

const get = async () => {
  const res = await reqLogin(user.username, user.password)
}
</script>

<script lang="ts">
export default {
  name: 'VTest'
}
</script>

<style lang="scss" scoped></style>
